class SayHello extends React.Component {
    constructor(props) {
        super(props);
        this.state = { name: 'Fleven' }

        this.handleClick = this.handleClick.bind(this);
    }
    handleClick(name) {
        alert("Hello" + this.state.name);
        alert("hello" + name)
    }
    render() {
        return ( <
            div >
            <
            button onClick = {
                () => this.handleClick("FFF")
            } > 点击 < /button>  <
            button onClick = {
                this.handleClick.bind(this, "GGG")
            } > 点击 < /button>  < /
            div >

        )
    }
}

ReactDOM.render( <
    SayHello / > ,
    document.getElementById('root')
)